TransformOperationRotate
Type
statement
Summary
Apply a rotation to a transform.
Syntax
rotate <mTransform> by <mRotation>
Description
Apply a rotation by mRotation degrees to mTransform. This is equivalent to concatenating mTransform with a new rotation transform.
Parameters
Name | Type | Description |
---|---|---|
mTransform | An expression which evaluates to a transform. | |
mRotation | An expression which evaluates to a number of degrees. |
Examples
// Create a new transform
variable tTransform
put the identity transform into tTransform
// Rotate the transform by 90 degrees
rotate tTransform by 90